@echo off
REM createLib.bat - batchfile to create vxWorks libraries
REM
REM modification history
REM --------------------
REM 01b,25mar97,bjl  removed line that deletes %LIBNAME%
REM 01a,10jul96,yp   writtem
REM
REM DESCRIPTION
REM if the library does not exist we want to throw all the objects in
REM $(LIBDIR) in to the archive and not just the objects created in the 
REM the directory we were building. Due to variouse constraints in win95
REM command shell this scrpit just copies the makefile makearch.mf from 
REM target/h/make and calls make with the appropriate args
REM 
set CPU=%1
shift
set TOOL=%1
shift
set AR=%1
shift
set RANLIB=%1
shift
set RM=%1
shift
set UP=%1
shift
set LIBNAME=%1
shift
set LIBDIR=%1
shift
cd %LIBDIR%
copy ..\..\h\make\makearch.mf
call make -f makearch.mf AR=%AR% LIBNAME=%LIBNAME% RANLIB=%RANLIB%
call %RM% makearch.mf
